package com.userrequestdtos;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class LoginValidationDTO implements KvmSerializable{

	//declaring variables

	public String v_useremail;
	public String v_userpassword;

	// default constructor
	LoginValidationDTO(String uname,String passwd)
	{
		// some logic
	}
	// setter's and getter's

	@Override
	public Object getProperty(int index) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			return v_useremail;
		case 1:
			return v_userpassword;
		default:
			break;
		}
		return null;
	}
  
	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 2;
	}

	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		// TODO Auto-generated method stub
		switch(index)
		{
		case 0:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_useremail";
			break;
		case 1:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_userpassword";
			break;
		default:
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		// TODO Auto-generated method stub
		switch(index)
		{
		case 0:
			v_useremail=value.toString();
			break;
		case 1:
			v_userpassword=value.toString();
			break;
		default:
			break;
		}
	}

}
